package com.x.service.entity.map;

import com.x.service.entity.Chapter;
import com.x.zssqservice.bean.ChapterRead;

/**
 * Created by H on 18/5/16.
 */

public class ChapterReadToChapter implements IMap<ChapterRead, Chapter> {
    @Override
    public Chapter map(ChapterRead chapterRead) {
        Chapter chapter = new Chapter(chapterRead.chapter.title, chapterRead.chapter.body, chapterRead.chapter.cpContent);
        chapter.ok = chapterRead.ok;
        return chapter;
    }
}
